<?php $this->pageTitle = Yii::app()->name . ' - ' . AdmincpModule::t("Restore");
?>


<div class="container">
    <div class="row">
        <div class="span3 hidden-phone"></div>
        <div class="span6" id="form-login">
            <?php if (Yii::app()->user->hasFlash('recoveryMessage')): ?>
                <div class="success">
                    <?php echo Yii::app()->user->getFlash('recoveryMessage'); ?>
                </div>
            <?php else: ?>
                <?php
                $form = $this->beginWidget('CActiveForm', array(
                    'id' => 'login-recovery',
                    'enableAjaxValidation' => FALSE,
                    'htmlOptions' => array("class" => "form-horizontal well"),
                ));
                ?>
                <fieldset>
                    <legend>Quên mật khẩu</legend>
                    <div class="control-group">
                        <?php echo $form->labelEx($model, 'login_or_email', array('class' => 'control-label')); ?>
                        <div class="controls">
                            <?php echo $form->textField($model, 'login_or_email', array('placeholder' => 'Tên đăng nhập hoặc email', 'class' => 'span3')); ?>
                            <?php echo $form->error($model, 'login_or_email'); ?>
                        </div>
                    </div>


                    <div class="control-group">
                        <div class="controls">
                            <button type="submit" id="submit" class="btn btn-primary button-loading" data-loading-text="Loading...">Restore</button>
                        </div>
                    </div>
                </fieldset>
                <?php $this->endWidget(); ?>
            <?php endif; ?>
        </div>
        <div class="span3 hidden-phone"></div>
    </div>
</div>


